package cn.m3a1.bean;

import cn.m3a1.util.GlobalUtils;

public class SysLog {
    private Integer id;

    private String who;

    private Long whattime;

    private String what;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getWho() {
        return who;
    }

    public void setWho(String who) {
        this.who = who == null ? null : who.trim();
    }

    public Long getWhattime() {
        return whattime;
    }

    public void setWhattime(Long whattime) {
        this.whattime = whattime;
    }

    public String getWhat() {
        return what;
    }

    public void setWhat(String what) {
        this.what = what == null ? null : what.trim();
    }
    public String getTimeStr() {
        if(whattime>0) {
            return GlobalUtils.timeToDateString(whattime, "yyyy-MM-dd");
        }
        return "";
    }
}